package com.linkhub.oms.data.sync.api.shopify.domain.response;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonAlias;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Description: ShopResponse
 * @Author: echo
 * @Date: 2024/3/21 16:02
 * @Version: 1.0
 */
@NoArgsConstructor
@Data
public class ShopResponse implements Serializable {

    public static final String FIELDS = "id,name,email,domain,logo";
    @JsonAlias("shop")
    @JSONField(name = "shop")
    private Shop shop;

    @Data
    @NoArgsConstructor
    public static class Shop {

        @JsonAlias("id")
        @JSONField(name = "id")
        private long id;
        @JsonAlias("name")
        @JSONField(name = "name")
        private String name;
        @JsonAlias("email")
        @JSONField(name = "email")
        private String email;
        @JsonAlias("domain")
        @JSONField(name = "domain")
        private String domain;
        @JsonAlias("logo")
        @JSONField(name = "logo")
        private Logo logo;
    }

    @Data
    @NoArgsConstructor
    public static class Logo {
        @JsonAlias("attachment_blob_url")
        @JSONField(name = "attachment_blob_url")
        private String attachment_blob_url;
    }

}
